package com.pine.app.module.security.oauth.user.password;

/**  此类来自于spring security
 * @author xiaoyuan
 * @create 2020/3/12 13:04
 **/
public interface PasswordEncoder {
    //加密
    String encode(CharSequence charSequence);
    //数据对比 charSequence为原始密码   var2为加密密码
    boolean matches(CharSequence charSequence, String var2);

    default boolean upgradeEncoding(String encodedPassword) {
        return false;
    }
}
